home *** CD-ROM | disk | FTP | other *** search
- /* all.h
-
- Data types used throughout the maplay code. */
-
- /*
- * @(#) all.h 1.6, last edit: 6/17/94 15:40:44
- * @(#) Copyright (C) 1993, 1994 Tobias Bading (bading@cs.tu-berlin.de)
- * @(#) Berlin University of Technology
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
- // 6/26/96: Removed bool type since Windows already has BOOL.
-
- #ifndef ALL_H
- #define ALL_H
-
- #ifdef __WIN32__
- #include <wtypes.h>
- #endif
-
- // real number
- typedef float real; // float should be enough
-
- // Signed & unsigned integers, define SIXTEEN_BIT_COMPILER if the
- // default integer size is 16 bits
-
- #ifdef SIXTEEN_BIT_COMPILER
- typedef long int32; // 32 Bit signed integer
- typedef unsigned long uint32; // 32 Bit unsigned integer
- typedef int int16; // 16 Bit signed integer
- typedef unsigned int uint16; // 16 Bit unsigned integer
- #else
- typedef int int32; // 32 Bit signed integer
- typedef unsigned uint32; // 32 Bit unsigned integer
- typedef signed short int16; // 16 Bit signed integer
- typedef unsigned short uint16; // 16 Bit unsigned integer
- #endif // SIXTEEN_BIT_COMPILER
-
- #ifdef ULAW
- typedef unsigned char ulawsample; // u-law byte
- #endif // ULAW
-
- // mutex type (only for user seekable or stoppable streams)
- #ifdef SEEK_STOP
- #ifdef __WIN32__
-
- typedef HANDLE _Mutex;
- #endif // __WIN32__
- #endif // SEEK_STOP
-
- // boolean type, WIN32 already has BOOL
- #ifndef __WIN32__
- #ifndef NObool
- typedef bool BOOL;
- #else
- typedef char BOOL;
- #endif // NObool
- #ifndef TRUE
- #define TRUE 1
- #define FALSE 0
- #endif // !TRUE
- #endif // !__WIN32__
-
- enum e_channels { both, left, right, downmix };
-
- #endif // ALL_H
-